 package com.acwebsitedesign.uRateDrugs.domain;

import java.util.List;

import org.springframework.security.access.annotation.Secured;


public interface ReviewService {
	List<Review> getReviewsForADrug(int drugId);
	@Secured("ROLE_VIEW_ALL_REVIEWS")
	List<Review> getAllReviewsFromAUser(int id);
	List<Review> getReviewWithId(Review review);
	void saveReview(Review review);
	@Secured("ROLE_REMOVE_REVIEW")
	void removeReview(int PId);
	@Secured("ROLE_REMOVE_REVIEW")
	void removeAllReviewsForAUser(int UId);
	int getRating(int drugId);

}
